<template>
  <div class="common-layout">
    <el-container>
      <el-aside style="width:200px"><Sidebar /></el-aside>
      <el-container style="height:100vh;">
        <el-header class="main-header"><Header /></el-header>
        <el-main>
            <router-view />
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script setup>
import Header from '../components/Header.vue'
import Sidebar from '../components/Sidebar.vue'
</script>

<style>
.main-header{
  background: #ececec;
  box-shadow: 0 2px 4px rgba(30, 0, 130, 0.1);
}
</style>